package org.jfree.experimental.chart.swt.demo;

import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.jfree.data.time.Month;

public class SimpleFormatDate {
	public static void main(String[] args) throws ParseException {
		String str = "Aug14";

		SimpleDateFormat format1 = new SimpleDateFormat("MMMyyyy");
		SimpleDateFormat format2 = new SimpleDateFormat("MMMyy");

		Date d = format1.parse(str);
		String s = format2.format(d);

		System.out.println("date :" + d);
		System.out.println(s);
		System.out.println("Month :" + new Month(d));

	}
}
